home *** CD-ROM | disk | FTP | other *** search
- Xanth #1 @5856
- Wed Jul 31 18:09:46 1991
- MS: Reply Not Needed.
-
- This mod is for WWIV 4.12, and I don't know if it will work on any other
- version.
-
- Mod name: XANTH3.MOD
-
- Description: This mod will allow your users to post a response to a
- message in another sub (i.e. the Wars sub). It will
- also tell what sub the original message was in. This
- is another of those mods which i just took original code
- and manipulated it to make my own. I got some of the
- text from 8balls Jump mod, so I give him due credit.
-
- Disclaimer: I take no responsibility for anything this code does to your
- computer. I see no way for anything to happen, but just in
- case...
-
- Step 1) Back up your source.
-
- Step 2) Load up MSGBASE1.C
-
- Step 3) Add the following code to the end of the extern statements:
-
- extern int othersub; /*mod - add */
-
- Step 4) Add the following variables in the void scan function:
-
- char s3[81],s4[81];
- int i3;
-
- Step 5) Go down to the case statements and after the end of case 'M'
- add the following case...
-
- case 'Z': /* Mod - add case */
- nl();
- strcpy(s3,"WARZ SUB");
- if (!s3[0])
- break;
- i3=0;
- nl();
- while ((i3<64) && (usub[i3].subnum!=-1)) {
- char s4[81];
- int j;
-
- strcpy(s4,subboards[usub[i3].subnum].name);
- for (j=0;(s4[j]=upcase(s4[j]))!=0;j++)
- ;
- if (strstr(s4,s3)!=NULL) {
- /* If you have a quote mod, add this, or change it to suit your
- specific mod */
- if (s[0]!='P') /* mod - quote */
- quote_message(&(msgs[msgnum].msg), /* mod - quote */
- (subboards[curlsub].filename)); /* mod - quote */
- deleted_flag=0;
- i=cursub;
- cursub=i3;
- othersub=i;
- post();
- if (deleted_flag && (deleted_flag<=msgnum))
- --msgnum;
- cursub=i;
- othersub=-1;
- iscan(cursub);
- break;
- }
- ++i3;
- }
- break;
- /* this is the end of the case, the following shoul'd already be there */
- /*************/
- }
- } else {
-
- Step 6) Save MSGBASE1.C
-
- Step 7) Load up MSGBASE.C
-
- Step 8) Add the following code to the end of the extern statements:
-
- extern int othersub; /*mod - add */
-
- Step 9) Search for the following in void inmsg "RE: "
-
- Step 10) Add the following code:
-
- if (irt[0]) { /* already here */
- strcpy(s,"RE: "); /* already here */
- strcat(s,irt); /* already here */
- addline(b,s,&l1); /* already here */
- if (othersub!=-1) { /* mod - add */
- strcpy(s,"From Sub: "); /* mod - add */
- strcat(s,subboards[usub[othersub].subnum].name); /* mod - add */
- addline(b,s,&l1); /* mod - add */
- othersub=-1; /* mod - add */
- } /* mod - add */
- addline(b,"",&l1); /* already here */
- irt[0]=0; /* already here */
-
- Step 11) Save MSGBASE.C
-
- Step 12) Load up XINIT.C
-
- Step 13) Add the following code to the end of the extern statements:
-
- extern int othersub; /* mod - add */
-
- Step 14) Add the following code:
-
- global_handle=0; /* search for this */
- othersub=-1; /* mod - add */
- /* already here */
- if (x) { /* already here */
-
- Step 15) Save XINIT.C
-
- Step 16) Recompile, and you are done.
-
- Ok, now you should have no problems with this mod...There is probably
- a better way to do it, but this worked for me. To change the sub you want
- the replies to be sent to, change the "WARZ SUB" to the name of the sub
- you want them sent to, and make sure the name is in all caps. NOTE:
- This does not mean that the name of the sub in your board edit has to be
- in all caps!!!
- Ok, well this has been another mod by Xanth :)
- 23The Void BBS WWIV net @5856
- 2Your sysop:1 X2a3n45t7h
- 15(518)372-3632